package com.quick.service;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.quick.base.Page;
import com.quick.base.Search;
import com.quick.sys.domain.dto.SysPostDTO;
import com.quick.sys.domain.pojo.SysPost;
import com.quick.sys.domain.search.SysPostSearch;
import com.quick.sys.domain.vo.SysPostVo;
import com.quick.util.QuickTool;

public interface ISysPostService {
	default void queryWrapper(QueryWrapper<SysPost> queryWrapper, SysPostSearch search) {
		if(QuickTool.notNull(search.getKey())){
			queryWrapper.lambda().like(SysPost::getName, search.getKey());
		}
	}
    Page<SysPostVo> search(Search<SysPostSearch> search);
	Boolean saveSysPost(SysPostDTO role);
	SysPostVo queryById(Long id);
	Boolean delById(Long id);
	Boolean batchDel(List<Long> ids);
}
